<?php

namespace Admin\Controller;

use Think\Controller;

class AdverController extends Controller
{
    public function index()
    {
        $info = M()->table('trade_adver as a')
            ->field('a.num,a.price,a.trade_type,a.pay_type,a.country,a.min_limit,a.max_limit,a.addtime,b.username')
            ->join('left join trade_user as b on a.userid = b.id')
            ->select();

        $this->ajaxReturn($info, 'JSON');
    }
}